#ifndef __GL_MESSAGEBOX_H__
#define __GL_MESSAGEBOX_H__

#include "GLui.h"
#include "GLButton.h"

#include <vector>
#include <string>
using namespace std;

class GLMessageBox:public GLRect
{
    static int bId;
    static bool isDone;
    static UIInputHandler inputHandler;
    static ClickHandler swapBuffers;

    //    vector<GLButton*> buttons;
    public:
    GLMessageBox(int x=10, int y=HEIGHT-10, int w=WIDTH-20, int h=HEIGHT-20);
    ~GLMessageBox();
    //        int show(); //exec this has to return before the code proceeds.
    //        void addButton(char *str);
    static int  information(char *caption, char *text, char *b0Text=NULL, char *b1Text=NULL, char *b2Text=NULL);
    //send the input handler mouse event handler actually and the function for swap buffers
    static void  setCallbacks(UIInputHandler inh, ClickHandler swp);
    //function to be called when button2 is pressed
    static void  b2Pressed();
    //function to be called when button1 is pressed
    static void  b1Pressed();
    //function to be called when button0 is pressed.
    static void b0Pressed();
};


#endif //__GL_MESSAGEBOX_H__
